//
//  Tween.m
//  iphoneApp
//
//  Created by Liyu on 12-11-26.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//


/*
Quad: {
easeIn: function(t,b,c,d){
    return c*(t/=d)*t + b;
},
easeOut: function(t,b,c,d){
    return -c *(t/=d)*(t-2) + b;
},
easeInOut: function(t,b,c,d){
    if ((t/=d/2) < 1) return c/2*t*t + b;
    return -c/2 * ((--t)*(t-2) - 1) + b;
}
}*/

#import "Tween.h"

@implementation Tween
{}


+(NSInteger)Quadratic:(CGFloat)begin initValue:(CGFloat)initValue changeValue:(CGFloat)changeValue end:(CGFloat)end
{    
    return changeValue*(begin/=end)*begin + initValue;
}

@end


